package lagou.homework.lagouhomework.Unit3.code.q4;

public class Student {
    private  int  id;       // 学号
    private  String  name;  // 姓名
    private  int  age;      // 年龄

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Student() {
    }

    public Student(int id, String name, int age) {
        setId(id);
        setName(name);
        setAge(age);
    }


    public  String show(){
        //System.out.println("学生学号是："+getId()+",姓名为："+getName()+",年龄为："+getAge()+"岁.");
        return "学生学号是："+getId()+",姓名为："+getName()+",年龄为："+getAge()+"岁.";
    }







}
